package ooday05exercise;

public enum Season {
    //表示Season的4个对象，都是常量

//    public static final Season SPRING = new Season("春天","暖和");
    SPRING("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","寒冷");



    private String seasonName;
    private  String seasonDesc;
    Season(String seasonName,String seasonDesc){//给对象初始化
        this.seasonDesc=seasonDesc;
        this.seasonName=seasonName;
    }
    public String getSeasonName(){
        return  this.seasonName;//获取对象属性的值
    }
    public void setSeasonName(String seasonName){
        this.seasonName=seasonName;//设置对象属性的值

    }
    public String getSeasonDesc(){
        return this.seasonDesc;
    }
    public void setSeasonDesc(String seasonDesc){
        this.seasonDesc=seasonDesc;
    }
}
